﻿using SheBao.IDAL;
using SheBao.Model;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SheBao.EFDAL
{
    public class UserDal : IUserDal
    {
        //shebaofqEntities db = new shebaofqEntities();
        DbContext db;
        public UserDal()
        {
            db = DbContextFactory.GetCurrentDbContext();
        }
        public void Add(User entity)
        {
            if (entity != null)
            {
                db.Set<User>().Add(entity);
            }
        }

        public void Update(User entity)
        {
            throw new NotImplementedException();
        }

        public void Delete(User entity)
        {
            throw new NotImplementedException();
        }

        public IQueryable<User> LoadEntities(Func<User, bool> lamda)
        {
            throw new NotImplementedException();
        }
    }
}
